import React from 'react';

import {observer, inject} from "mobx-react";
import stores from "../../store/index";

class Common extends React.Component {
    constructor(props) {
        super(props);
        if (!stores.loginStore.isLogin) {
            this.props.history.push("/login")
        }
    }
}

export default Common
